POV-Ray : Newsgroups : povray.advanced-users : Random number generator needed ! : Re: Random number generator needed ! Server Time
30 Jul 2024 00:26:54 EDT (-0400)
  Re: Random number generator needed !  
From: Warp
Date: 23 Feb 2001 07:35:35
Message: <3a965916@news.povray.org>
Lutz-Peter Hooge <lpv### [at] gmxde> wrote:
: No, if I understand Rune correctly, he means if you call it several times 
: with different, but somehow linked to each other, pairs of values, the 
: resulting "random" values should NOT have a visible link to each other.

  And why rand(seed(I1*I2)) doesn't give the desired result? It looks to me
like it gives values between 0 and 1 quite randomly, not very related to
I1 and I2.

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.